State detector of video device and state detection method thereof

ABSTRACT

A state detector of a video device and a state detection method thereof are provided. The state detector includes a first chroma detector, a second chroma detector, and a controller. The first chroma detector and the second chroma detector operate in a first state among a plurality of states. When the second chroma detector is not capable of processing an input signal normally, the controller controls the second chroma detector to switch between the states until the second chroma detector operates in a second state to process the input signal normally, and the first chroma detector is set to operating in the second state. As a result, the quality of a displayed image is improved.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the priority benefit of Taiwan applicationserial no. 97133804, filed on Sep. 3, 2008. The entirety of theabove-mentioned patent application is hereby incorporated by referenceherein and made a part of specification.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention generally relates to a video device, and moreparticularly, to a state detection technique for a video device.

2. Description of Related Art

It is well known in the video device industry that the phase of a videosignal has to be locked before the video signal is processed in order toprocess the video signal correctly.

A video signal further carries a color burst signal for denoting thephase of color information carried by the video signal. A chromadetector is used for detecting the color burst signal so that the phaseof the color information can be locked and the correct color informationcan be decoded subsequently.

However, usually only one chroma detector is disposed in a video device.The chroma detector is used for processing an input signal andaccordingly generating an output signal, and the chroma detector is alsoused for detecting whether the phase of the input signal can be locked.The chroma detector may not be able to lock the phase of the inputsignal when the signal source is changed, for example, when the inputsignal is changed from the National Television System Committee (NTSC)format to the Phase Alternating Line (PAL) format.

Accordingly, when the chroma detector cannot lock the phase of the inputsignal, a controller of the video device switches the operation state ofthe chroma detector according to a finite state machine (FSM) until thechroma detector can lock the phase of the input signal.

Generally, it takes a very long time for the controller to switch theoperation state of the chroma detector according to the FSM. Besides, ifthe chroma detector cannot process the input signal normally andaccordingly, a transient problem may be caused in a displayed imagebecause the controller needs to continuously switch the operation stateof the chroma detector.

Moreover, it is not necessary to change the operation state of thechroma detector when the strength of the input signal is reduced.However, in the conventional technique, the controller may mistakenlydetermine that the chroma detector cannot lock the phase of the inputsignal normally and accordingly switch the operation state of the chromadetector to re-lock the phase of the input signal. As a result, thequality of a displayed image may be affected.

SUMMARY OF THE INVENTION

Accordingly, the present invention is directed to a state detector of avideo device, wherein the transient problem in a displayed image isimproved.

The present invention is directed to a state detection method for avideo device, wherein the quality of a displayed image is improved.

The present invention is directed to a state detection method for avideo device, wherein the interference of a chroma detector to adisplayed image when the chroma detector switches its operation mode isreduced.

The present invention provides a state detector of a video device,wherein the state detector includes a first chroma detector, a secondchroma detector, and a controller. The first chroma detector operates ina first state among a plurality of states to process an input signal andaccordingly generate an output signal. The second chroma detectoroperates in the first state among foregoing states to detect whether theinput signal can be processed normally. The controller is coupled to thefirst chroma detector and the second chroma detector. When the secondchroma detector is not capable of processing the input signal normally,the controller controls the second chroma detector to switch betweenforegoing states until the second chroma detector operates in a secondstate to process the input signal normally, and the first chromadetector is set to operating in the second state.

According to an embodiment of the present invention, the first chromadetector includes a sampler, a band-pass filter, a multiplier, a chromademodulator, a low-pass filter, an auto gain controller (AGC), and afilter. The sampler samples the input signal according to a firstparameter. The band-pass filter is coupled to the sampler for performinga band-pass filtering process to the input signal. The multiplier iscoupled to the band-pass filter for performing a multiplication to theinput signal according to a gain. The chroma demodulator is coupled tothe multiplier for performing a chroma demodulation process to the inputsignal. The low-pass filter is coupled to the chroma demodulator forperforming a low-pass filtering process to the input signal. The AGC iscoupled to the low-pass filter for generating the gain according to theinput signal. The filter is coupled to the low-pass filter and thesampler for filtering the input signal according to a second parameterand generating the first parameter.

According to an embodiment of the present invention, the second chromadetector has the same components as the first chroma detector. Accordingto another embodiment of the present invention, the second chromadetector further includes a phase detector, wherein the phase detectoris coupled to the low-pass filter for detecting whether the phase of theinput signal can be locked.

According to an embodiment of the present invention, the state detectorfurther includes a clamp and gain control circuit. The clamp and gaincontrol circuit is coupled to the first chroma detector and the secondchroma detector for adjusting the offset and gain of the input signaland outputting the adjusted input signal to the first chroma detectorand the second chroma detector.

According to an embodiment of the present invention, the state detectorfurther includes a horizontal sync detector. The horizontal syncdetector is coupled to the controller, and an operation state of thehorizontal sync detector is determined according to a control signaloutput by the controller. The horizontal sync detector horizontallysynchronizes the input signal and detects whether the input signal ishorizontally synchronized. According to another embodiment of thepresent invention, the state detector further includes a vertical syncdetector. The vertical sync detector is coupled to the controller, andan operation state of the vertical sync detector is determined accordingto a control signal output by the controller. The vertical sync detectorvertically synchronizes the input signal and detects whether the inputsignal is vertically synchronized.

According to an embodiment of the present invention, the state detectorfurther includes a Y/C separator, wherein the Y/C separator is coupledto the first chroma detector for performing a Y/C separation process tothe output signal. According to another embodiment of the presentinvention, the state detector further includes an output device, whereinthe output device is coupled to the first chroma detector for outputtingthe output signal.

The present invention provides a state detection method for a videodevice, wherein the video device includes a first chroma detector and asecond chroma detector. The state detection method includes followingsteps. The first chroma detector is set to operating in a first stateamong a plurality of states to process an input signal and accordinglygenerate an output signal. In addition, whether the second chromadetector can process the input signal normally when it operates in thefirst state is detected. When the second chroma detector cannot processthe input signal normally, the second chroma detector is controlled toswitch between foregoing states until the second chroma detectoroperates in a second state to process the input signal normally, and thefirst chroma detector is set to operating in the second state.

The present invention provides a state detection method for a videodevice, wherein the video device includes a first chroma detector and asecond chroma detector, and the first chroma detector operates in afirst state to process an input signal and accordingly generate anoutput signal. The state detection method includes following steps.Whether the second chroma detector processes the input signal normallywhen the second chroma detector operates in the first state as the firstchroma detector is detected. When the second chroma detector is notcapable of processing the input signal normally, the first chromadetector remains to operation in the first state and the second chromadetector is controlled to switch between a plurality of states until thesecond chroma detector operates in a second state to process the inputsignal normally. The first chroma detector is switched from the firststate to the second state to process the input signal.

In the present invention, a first chroma detector and a second chromadetector operate in a first state among a plurality of states. When itis detected that the second chroma detector is not capable of processingan input signal normally, the second chroma detector is controlled toswitch among foregoing states until the second chroma detector canoperate in a second state to process the input signal normally, and thefirst chroma detector is set to operating in the second state as well.Thereby, a transient problem in a displayed image is resolved.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings are included to provide a furtherunderstanding of the invention, and are incorporated in and constitute apart of this specification. The drawings illustrate embodiments of theinvention and, together with the description, serve to explain theprinciples of the invention.

FIG. 1 is a block diagram of a state detector of a video deviceaccording to an embodiment of the present invention.

FIG. 2 is a block diagram of a chroma detector according to anembodiment of the present invention.

FIG. 3 is a flowchart of a state detection method according to anembodiment of the present invention.

FIG. 4 is a diagram of a finite state machine (FSM) according to anembodiment of the present invention.

FIG. 5 is a flowchart of a state detection method according to anembodiment of the present invention.

DESCRIPTION OF THE EMBODIMENTS

Reference will now be made in detail to the present preferredembodiments of the invention, examples of which are illustrated in theaccompanying drawings. Wherever possible, the same reference numbers areused in the drawings and the description to refer to the same or likeparts.

Conventionally, a single chroma detector is disposed in a video device.Thus, when a controller constantly changes the operation state of thechroma detector according to a finite state machine (FSM), the chromadetector cannot process an input signal normally such that a transientproblem is caused in a displayed image. Accordingly, in embodiments ofthe present invention, a first chroma detector and a second chromadetector are adopted for resolving foregoing problem.

In short, according to the present invention, the first chroma detectorand the second chroma detector are set in the same operation state. Thefirst chroma detector processes an input signal constantly, and thesecond chroma detector detects whether the input signal can be processednormally in the current state. When the second chroma detector cannotprocess the input signal normally, the second chroma detector iscontrolled to switch between a plurality of states so that eventuallythe second chroma detector can operate in a certain operation state toprocess the input signal normally, and the first chroma detector is thenset to operating in that certain operation state.

Herein it should be noted that the first chroma detector can stillprocess the input signal constantly in the original state when thesecond chroma detector switches its operation states. Thus, thetransient problem in a displayed image can be resolved. This will bedescribed in more details below with reference to accompanying drawings.

FIG. 1 is a block diagram of a state detector of a video deviceaccording to an embodiment of the present invention. Referring to FIG.1, in the present embodiment, the state detector 10 includes a chromadetector 21, a chroma detector 22, a controller 30, a horizontal syncdetector 40, a vertical sync detector 50, a clamp and gain controlcircuit 60, a Y/C separator 70, and an output device 80. The clamp andgain control circuit 60 is coupled to the chroma detector 21, the chromadetector 22, the horizontal sync detector 40, and the vertical syncdetector 50. The controller 30 is coupled to the chroma detector 21, thechroma detector 22, the horizontal sync detector 40, and the verticalsync detector 50. The Y/C separator 70 is coupled to the chroma detector21 and the output device 80. The vertical sync detector 50 is coupled tothe horizontal sync detector 40 and the output device 80. Foregoingcomponents will be described in detail below.

The clamp and gain control circuit 60 adjusts an offset and a gain of aninput signal VS1 to maintain the signal at a fixed level and theamplitude thereof within a fixed range and generate signals VS2 and VS5.In the present embodiment, the input signal VS1 is a video signal.Foregoing disposition makes it convenient for a back-end circuit toprocess signals. In addition, the clamp and gain control circuit 60provides the signal VS2 to the chroma detectors 21 and 22 and the signalVS5 to the horizontal sync detector 40.

The chroma detector 21 processes the signal VS2 and provides a signalVS3 to the Y/C separator 70. In addition, the chroma detector 21 alsodetects whether the phase of the signal VS2 can be correctly locked andaccordingly generates a signal R3 for the controller 30. It isdetermined that the chroma detector 21 can lock the phase of the signalVS2 when the signal R3 is at logic high level. Contrarily, it isdetermined that the chroma detector 21 cannot lock the phase of thesignal VS2 when the signal R3 is at logic low level.

Similarly, the chroma detector 22 detects whether the phase of thesignal VS2 can be locked and provides a signal R4 to the controller 30.It is determined that the chroma detector 22 can lock the phase of thesignal VS2 when the signal R4 is at logic high level. Contrarily, it isdetermined that the chroma detector 22 cannot lock the phase of thesignal VS2 when the signal R4 is at logic low level.

The horizontal sync detector 40 horizontally synchronizes the signal VS5and provides a signal VS6 to the vertical sync detector 50. In addition,the horizontal sync detector 40 also detects whether the signal VS6 ishorizontally synchronized and provides a signal R1 to the controller 30.It is determined that the signal VS6 is horizontally synchronized whenthe signal R1 is at logic high level. Contrarily, it is determined thatthe signal VS6 is not horizontally synchronized when the signal R1 is atlogic low level.

The vertical sync detector 50 vertically synchronizes the signal VS6 andprovides a signal VS7 to the output device 80. In addition, the verticalsync detector 50 also detects whether the signal VS7 is verticallysynchronized and provides a signal R2 to the controller 30. It isdetermined that the signal VS7 is vertically synchronized when thesignal R2 is at logic high level. Contrarily, it is determined that thesignal VS7 is not vertically synchronized when the signal R2 is at logiclow level. Moreover, the vertical sync detector 50 further detects thenumber of vertical lines of the signal VS6 and provides a signal R5 tothe controller 30. For example, it is determined that the number ofvertical lines of the signal VS6 is 625 when the signal R5 is at logichigh level, and it is determined that the number of vertical lines ofthe signal VS6 is 525 when the signal R5 is at logic low level.

As described above, the controller 30 receives the signals R1˜R5 outputby the chroma detector 21, the chroma detector 22, the horizontal syncdetector 40, and the vertical sync detector 50 and accordingly outputssignals S1˜S4 to the chroma detector 21, the chroma detector 22, thehorizontal sync detector 40, and the vertical sync detector 50. To speakmore specifically, the controller 30 controls the operation states ofthe chroma detector 21, the chroma detector 22, the horizontal syncdetector 40, and the vertical sync detector 50 by using the signalsS1˜S4. The chroma detector 21, the chroma detector 22, the horizontalsync detector 40, and the vertical sync detector 50 operate withdifferent parameters according to different operation states thereof.

On the other hand, the Y/C separator 70 performs a Y/C separationprocess to the signal VS3 and provides a signal VS4 to the output device80. The output device 80 receives the signals VS4 and VS7 andaccordingly provides a signal VS8 to a back-end (not shown).

In the present embodiment, the chroma detector 21 and the chromadetector 22 have the same components. An implementation of the chromadetector will be described blow so that those skilled in the art canimplement the chroma detector in the present invention accordingly.

FIG. 2 is a block diagram of a chroma detector according to anembodiment of the present invention. Referring to both FIG. 1 and FIG.2, only the chroma detector 21 will be described herein as an examplesince the chroma detector 21 and the chroma detector 22 have the samecomponents. The chroma detector 21 includes a sampler 201, a band-passfilter 202, a multiplier 203, a chroma demodulator 204, a low-passfilter 205, a phase detector 206, an auto gain controller (AGC) 207, anda filter 208.

In the present embodiment, the sampler 201 is coupled to the band-passfilter 202 and the filter 208. The multiplier 203 is coupled to theband-pass filter 202, the chroma demodulator 204, and the AGC 207. Thelow-pass filter 205 is coupled to the chroma demodulator 204, the phasedetector 206, and the AGC 207.

As described above, the sampler 201 samples the signal VS2 according toa parameter cdto_inc and accordingly generates a sample signal CS1. Theband-pass filter 202 performs a band-pass filtering process to thesample signal CS1 to filter out the chroma information in the samplesignal CS1 (it should be noted that the chroma information stillcontains some brightness information and accordingly, a complete Y/Cseparation process has to be carried out subsequently by the Y/Cseparator 70) and generates a signal CS2 to be used in subsequent chromaphase detection.

Next, the multiplier 203 performs a multiplication to the signal CS2according to a gain and generates a signal CS3. This is because theamplitude of a color burst signal is usually very small, and accordinglyan amplitude adjustment is performed by the multiplier 203 by using again in order to make subsequent processing of the color burst signaleasier.

The chroma demodulator 204 and the low-pass filter 205 demodulate thesignal. As well known in the industry, color information is usuallymodulated through sine/cosine functions. Thus, while demodulating thesignal, the signal is first multiplied by a sine/cosine function todivide the signal into a low-frequency part and a double-frequency part.The chroma demodulator 204 performs foregoing operation and multipliesthe signal CS3 by a sine/cosine signal to generate a signal CS4.Subsequently, the low-pass filter 205 performs a low-pass filteringprocess to the signal CS4 to filter out foregoing double-frequencysignal and obtain a demodulated signal CS5. For example, a color signalis usually transmitted through a U/V signal, wherein the U/V signal isrespectively modulated through a sine/cosine function. When the signalis demodulated, the U/V has to be separated through the method describedabove.

As described above, the AGC 207 generates the gain according to theamplitude of the color burst in the signal CS5 and sends the gain backto the multiplier 203 to carry out foregoing amplitude adjustment. Thephase detector 206 detects whether the phase of the color burst in thesignal CS5 can be correctly locked and accordingly provides the signalR3 to the controller 30. In addition, the phase detector 206 alsodetects a phase error CS6 and sends the phase error CS6 to the filter208. The filter 208 performs an average calculation (i.e., a low-passfiltering process) to the phase error CS6 and obtains a compensatedsample parameter cdto_inc according to an ideal sample parametercdto_inc corresponding to the current state, and the filter 208 sendsthe compensated sample signal cdto_inc back to the sampler 201 so thatthe sampler 201 can samples the signal according to the compensatedsample parameter cdto_inc. Besides, the filter 208 outputs the processedvideo signal so that the Y/C separator 70 can carry out a complete Y/Cseparation to the video signal.

It should be noted herein that in the present embodiment, the filteringparameter cdto is determined according to the operation state of thechroma detector 21. Namely, different operation state is correspondingto different ideal filtering parameter cdto. For example, the NTSCformat and the PAL format have different filtering parameters.

Those skilled in the art should be able to implement the chroma detector22 according to foregoing description with reference to FIG. 2. Itshould be mentioned herein that in embodiments of the present invention,the chroma detector 21 is used for processing the signal while thechroma detector 22 is used for detecting whether the phase of the signalcan be locked correctly. Thus, the controller 30 determines whether tochange the operation state according to the signal R4 generated by thephase detector 206 of the chroma detector 22 instead of the signal R3.The controller 30 changes the operation state by only referring to thesignal R3 output by the chroma detector 21. In other words, in thepresent embodiment, the signal R3 is an optional signal.

Similarly, since in the present embodiment, the chroma detector 21 isused for performing the actual operation while the chroma detector 22 isused for detecting whether the phase of the signal can be correctlylocked, the signal VS3 generated by the filter 208 in the chromadetector 22 is not really used in subsequent signal processing. In otherwords, the filter 208 of the chroma detector 22 may not be coupled tothe Y/C separator 70. This will be further described below withreference to the accompanying drawings.

FIG. 3 is a flowchart of a state detection method according to anembodiment of the present invention. Referring to both FIG. 1 and FIG.3, first, in step S301, the controller 30 sets the chroma detector 21 tooperating in a first state among a plurality of states through thesignal S3. Accordingly, the chroma detector 21 processes the signal VS2and generates the signal VS3. Then, in step S302, whether the chromadetector 22 can process the signal VS2 normally (as described above, thechroma detector 22 detects whether the phase of the signal can becorrectly locked) when the chroma detector 22 operates in the firststate is detected and the signal R4 is generated. Namely, in step S302,whether the chroma detector 22 can process the signal VS2 normally whenit operates in the same state as the chroma detector 21 is detected.

Next, the controller 30 determines whether to execute step S303according to the signal R4. When the chroma detector 22 cannot processthe signal VS2 normally, the signal R4 is at logic low level, and stepS303 is executed, wherein the controller 30 controls the chroma detector22 to switch between foregoing states through the signal S4 until thechroma detector 22 operates in a second state to process the signal VS2normally. It should be mentioned that in step S303, the controller 30may not change the operation state of the chroma detector 21 so that thechroma detector 21 can maintain its original operation state to processthe signal VS2 constantly and provide a signal VS3 to the Y/C separator70. Accordingly, the quality of a displayed image is not affected instep S303.

Since the chroma detector 21 and the chroma detector 22 have similarcomponents and the chroma detector 22 can process the signal VS2normally when it operates in the second state, the chroma detector 21can also process the signal VS2 normally when it operates in the secondstate. Thus, in step S304, the controller 30 switch the chroma detector21 to the second state through the signal S3. Accordingly, thecontroller 30 only switches the state of the chroma detector 21 once toadjust the chroma detector 21 to the certain operation state. Thus, theinterference to the displayed image caused by switching the operationstate of the chroma detector 21 is reduced. Compared to the conventionaltechnique, the method in the present embodiment can resolve thetransient problem in the displayed image.

It should be mentioned that even though a possible model of the statedetector and the state detection method thereof for a video device hasbeen provided in the embodiment described above, it is understood bythose having ordinary knowledge in the art that different manufacturershave different designs for the state detector and the state detectionmethod thereof, and accordingly, the application of the presentinvention should not be limited to aforementioned model. In other words,it is within the scope of the present invention as long as the firstchroma detector and the second chroma detector are operated in the samestate and when it is detected that the second chroma detector cannotprocess the input signal normally, the second chroma detector iscontrolled to switch between foregoing states until the second chromadetector can normally operate in a certain operation state to processthe input signal and then the first chroma detector is switched into thecertain operation state. Embodiments of the present invention will befurther described below so that those having ordinary knowledge in theart can understand and implement the present invention accordingly.

Referring to FIG. 1 again, in the embodiment described above, the chromadetector 21 and the chroma detector 22 have the same components;however, the present invention is not limited thereto.

Referring to FIG. 1 again, in the embodiment described above, thecontroller 30 determines whether to switch the operation state of thechroma detector 22 according to only the signal R4; however, the presentinvention is not limited thereto. In another embodiment of the presentinvention, the controller 30 further controls the operation states ofvarious components according to the feedback signals of thesecomponents. FIG. 4 is a diagram of a FSM according to an embodiment ofthe present invention. Referring to FIG. 1 and FIG. 4, in the presentembodiment, the FSM has 9 states, which are respectively start, NTSC,NTSC443, PAL60, PALM, PALI, PALCN, NTSC50, and SECAM. It should bementioned that foregoing states respectively have their correspondingsignals S1˜S4. To be more specific, the controller 30 provides signalsS1˜S4 corresponding to different state to the chroma detector 21, thechroma detector 22, the horizontal sync detector 40, and the verticalsync detector 50. The method for switching between different states willbe described in detail below.

In the state start: When the controller 30 receives the signal R5 atlogic high level (1), it switches the chroma detector 22 to the statePALI. When the controller 30 receives the signal R5 at logic low level(0), it switches the chroma detector 22 to the state NTSC.

In the state NTSC: When the controller 30 receives the signal R5=1, itswitches the chroma detector 22 to the state PALI. When the controller30 receives the signal A=0, it switches the chroma detector 22 to thestate NTSC33. When the controller 30 receives the signal A=1, the chromadetector 22 remains in its original state (NTSC). In the presentembodiment, A=R1&R2&R4. To be more specific, A is at logic high level(1) only when the signals R1, R2 and R4 are all at logic high level (1).

In the state NTSC443: When the controller 30 receives the signal R5=1,it switches the chroma detector 22 to the state PALI. When thecontroller 30 receives the signal A=0, it switches the chroma detector22 to the state PAL60. When the controller 30 receives the signal A=1,the chroma detector 22 remains in its original state (NTSC443).

In the state PAL60: When the controller 30 receives the signal R5=1, itswitches the chroma detector 22 to the state PALI. When the controller30 receives the signal A=0, it switches the chroma detector 22 to thestate PALM. When the controller 30 receives the signal A=1, the chromadetector 22 remains in its original state (PAL60).

In the state PALM: When the controller 30 receives the signal R5=1, itswitches the chroma detector 22 to the state PALI. When the controller30 receives the signal A=0, it switches the chroma detector 22 to thestate NTSC. When the controller 30 receives the signal A=1, the chromadetector 22 remains in its original state (PALM).

In the state PALI: When the controller 30 receives the signal R5=0, itswitches the chroma detector 22 to the state NTSC. When the controller30 receives the signal A=0, it switches the chroma detector 22 to thestate PLACN. When the controller 30 receives the signal A=1, the chromadetector 22 remains in its original state (PALI).

In the state PLACN: When the controller 30 receives the signal R5=0, itswitches the chroma detector 22 to the state NTSC. When the controller30 receives the signal A=0, it switches the chroma detector 22 to thestate NTSC50. When the controller 30 receives the signal A=1, the chromadetector 22 remains in its original state (PLACN).

In the state NTSC50: When the controller 30 receives the signal R5=0, itswitches the chroma detector 22 to the state NTSC. When the controller30 receives the signal A=0, it switches the chroma detector 22 to thestate SECAM. When the controller 30 receives the signal A=1, the chromadetector 22 remains in its original state (NTSC50).

In the state SECAM: When the controller 30 receives the signal R5=0, itswitches the chroma detector 22 to the state NTSC. When the controller30 receives the signal A=0, it switches the chroma detector 22 to thestate PALI. When the controller 30 receives the signal A=1, the chromadetector 22 remains in its original state (SECAM).

FIG. 5 is a flowchart of a state detection method according to anembodiment of the present invention. Referring to FIG. 1, FIG. 4, andFIG. 5, first, in step S501, the controller 30 initializes the signalsS1, S2, S3, S4, and CNT, wherein CNT is a count value. Then, in stepS502, a period T1 of a timer (not shown) is waited for, wherein theperiod T1 may be 20 ms. Next, in step S503, the controller 30 checkswhether the signal R5 is changed. For example, it is determined that thesignal R5 is changed when the signal R5 is changed from 0 to 1 or from 1to 0 and step S511 is then executed. In step S511, the controller 30sets the signals S1˜S4 correspondingly according to the FSM in FIG. 4.

On the other hand, step S504 is executed when the signal R5 is notchanged, wherein the controller 30 checks whether the signal A is 1(whether R1&R2&R4 is at logic high level). If the signal A is 1, stepS505 is executed; otherwise, step S512 is executed. In step S512, thecontroller 30 sets the signal S4 correspondingly and resets CNTaccording to the FSM in FIG. 4. It should be mentioned that in stepS512, only the mode of the chroma detector 22 but not the chromadetector 21 is changed. Thus, the chroma detector 21 can still processthe signal VS2 constantly without affecting the displayed image.

Additionally, in step S505, the controller 30 increases CNT by 1. Next,in step S506, the controller 30 checks whether CNT is equal to athreshold TH. If CNT is equal to the threshold TH, step S507 isexecuted; otherwise, step S502 is executed. It should be mentionedherein that the value of the threshold TH can be determined according tothe actual requirement by those skilled in the art, and the greater thethreshold TH is, the step S507 is executed in a state of higherstability; contrarily, the smaller the threshold TH is, the step S507 isexecuted in a state of lower stability. From another point of view, thestep S506 is executed to determine whether the current state is stable.

In step S507, the controller 30 sets the signals S1˜S3 according to theFSM in FIG. 4. Then, in step S508, a period T2 of the timer is waitedfor before step S509 is executed, wherein the period T2 may also be 20ms. In step S509, the controller 30 checks whether the signal R5 ischanged. If the signal R5 is changed, step S511 is executed; otherwise,step S510 is executed. In step S510, the controller 30 checks whetherthe signal A is 1. If the signal A is 1, step S508 is executed;otherwise, step S512 is executed. Accordingly, the same function can beachieved as in the embodiment described above.

It should be noted that the FSM in FIG. 4 and the steps in FIG. 5 areonly an embodiment of the present invention and the present invention isnot limited thereto. The FSM in FIG. 4 and the steps in FIG. 5 can bechanged according to the actual requirement by those skilled in the art.

In overview, according to the present invention, a first chroma detectorand a second chroma detector are operated in the same state. When it isdetected that the second chroma detector cannot process the input signalnormally, the second chroma detector is controlled to switch between aplurality of states until the second chroma detector can normallyoperate in a certain operation state to process the input signalcorrectly, and the first chroma detector is switched into that certainoperation state as well. Thereby, the transient problem in a displayedimage can be resolved.

It will be apparent to those skilled in the art that variousmodifications and variations can be made to the structure of the presentinvention without departing from the scope or spirit of the invention.In view of the foregoing, it is intended that the present inventioncover modifications and variations of this invention provided they fallwithin the scope of the following claims and their equivalents.

1. A state detector of a video device, comprising: a first chromadetector, operating in a first state among a plurality of states, forprocessing an input signal and generating an output signal; a secondchroma detector, operating in the first state among the states, fordetecting whether the input signal is processed normally; and acontroller, coupled to the first chroma detector and the second chromadetector, wherein when the second chroma detector is not capable ofprocessing the input signal normally, the controller controls the secondchroma detector to switch between the states until the second chromadetector operates in a second state to process the input signalnormally, and the controller sets the first chroma detector to operatingin the second state.
 2. The state detector according to claim 1, whereinthe first chroma detector and the second chroma detector have samefunctions and operations.
 3. The state detector according to claim 1,wherein the first chroma detector comprises: a sampler, for sampling theinput signal according to a first parameter; a band-pass filter, coupledto the sampler, for performing a band-pass filtering process to theinput signal; a multiplier, coupled to the band-pass filter, forperforming a multiplication to the input signal according to a gain; achroma demodulator, coupled to the multiplier, for performing a chromademodulation process to the input signal; a low-pass filter, coupled tothe chroma demodulator, for performing a low-pass filtering process tothe input signal; an auto gain controller (AGC), coupled to the low-passfilter, for generating the gain according to the input signal; and afilter, coupled to the low-pass filter and the sampler, for filteringthe input signal according to a second parameter and generating thefirst parameter.
 4. The state detector according to claim 1, wherein thesecond chroma detector comprises: a sampler, for sampling the inputsignal according to a first parameter; a band-pass filter, coupled tothe sampler, for performing a band-pass filtering process to the inputsignal; a multiplier, coupled to the band-pass filter, for performing amultiplication to the input signal according to a gain; a chromademodulator, coupled to the multiplier, for performing a chromademodulation process to the input signal; a low-pass filter, coupled tothe chroma demodulator, for performing a low-pass filtering process tothe input signal; an AGC, coupled to the low-pass filter, for generatingthe gain according to the input signal; a phase detector, coupled to thelow-pass filter, for detecting whether a phase of the input signal canbe locked; and a filter, coupled to the phase detector and the sampler,for filtering the input signal according to a second parameter andgenerating the first parameter.
 5. The state detector according to claim1 further comprising: a clamp and gain control circuit, coupled to thefirst chroma detector and the second chroma detector, for adjusting anoffset and a gain of the input signal and outputting the adjusted inputsignal to the first chroma detector and the second chroma detector. 6.The state detector according to claim 1 further comprising: a horizontalsync detector, coupled to the controller, wherein an operation state ofthe horizontal sync detector is determined according to a control signaloutput by the controller, and the horizontal sync detector horizontallysynchronizes the input signal and detects whether the input signal ishorizontally synchronized.
 7. The state detector according to claim 1further comprising: a vertical sync detector, coupled to the controller,wherein an operation state of the vertical sync detector is determinedaccording to a control signal output by the controller, and the verticalsync detector vertically synchronizes the input signal and detectswhether the input signal is vertically synchronized.
 8. The statedetector according to claim 1 further comprising: a Y/C separator,coupled to the first chroma detector, for performing a Y/C separationprocess to the output signal and accordingly generating a processedsignal.
 9. The state detector according to claim 8 further comprising:an output device, coupled to the Y/C separator, for outputting theprocessed signal.
 10. A state detection method for a video device,wherein the video device comprises a first chroma detector and a secondchroma detector, the state detection method comprising: setting thefirst chroma detector to operating in a first state among a plurality ofstates to process an input signal and generate an output signal;detecting whether the second chroma detector can process the inputsignal normally when the second chroma detector operates in the firststate among the states; when the second chroma detector cannot processthe input signal normally, controlling the second chroma detector toswitch between the states until the second chroma detector operates in asecond state to process the input signal normally; and setting the firstchroma detector to operating in the second state.
 11. A state detectionmethod for a video device, wherein the video device comprises a firstchroma detector and a second chroma detector, and the first chromadetector operates in a first state to process an input signal andaccordingly generate an output signal, the state detection methodcomprising: detecting whether the second chroma detector processes theinput signal normally when the second chroma detector operates in thefirst state; when the second chroma detector is not capable ofprocessing the input signal normally, keeping the first chroma detectorto operation in the first state and controlling the second chromadetector to switch between a plurality of states until the second chromadetector operates in a second state to process the input signalnormally; and switching the first chroma detector from the first stateto the second state to process the input signal.